package com.winning.sx.microframework.service.sysmanage;

import com.winning.sx.microframework.dao.sysmanage.LoginDao;
import com.winning.sx.microframework.model.exception.CustomException;
import com.winning.sx.microframework.model.manage.LoginSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginService {
    @Autowired
    private LoginDao loginDao;

    public LoginSession getLoginUser(String userCode) throws CustomException {
        return loginDao.getLoginUser(userCode);
    }
}
